home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / testfhd.c < prev    next >
C/C++ Source or Header  |  1992-06-11  |  478b  |  29 lines

  1. #include <alloc.h>
  2. #include <stdio.h>
  3.  
  4. void printcore()
  5.  {
  6.     printf("Core:%lu\n",farcoreleft());
  7.  
  8. }
  9. #pragma   startup printcore 66
  10. #pragma   exit printcore 66
  11.  
  12. main(void)
  13. {
  14.  char * data;
  15.  
  16. //  FILE * f=fopen("CON","wt");
  17.   printf(
  18.   " Use dos command SET DEBUG=file \n"
  19.   "  where file is CON, PRN or any valid dos filename\n"
  20.   );
  21.  
  22.   data = malloc(50);
  23.   data=realloc(data,20);
  24.   data=realloc(data,100);
  25.   free (data);
  26. //  fclose(f);
  27.   return 0;
  28.  
  29. }